export default {
  createSaleType:{//创建saleType
    url: '/mall/saleType/create',
    require:['token','clientid','name']
  },
  delSaleType:{//删除saleType
    url: '/mall/saleType/delete',
    require:['token','clientid','id']
  },
  getSaleType:{//获取saleType
    url: '/mall/saleType/get',
    require:['token','clientid','id']
  },
  updateSaleType:{//更新saleType
    url: '/mall/saleType/update',
    require:['token','clientid','id']//data,name
  },
  getSaleTypeList:{//获取saleType列表
    url: '/mall/saleType/list',
    require:['token','clientid']
  },
  //sale
  createSale:{//创建sale
    url: '/mall/sale/create',
    require:['token','clientid','saleTypeId','title','storeId','start','end','tlSale']//conflictType(1冲突、2不冲突)、data(选)、
  // tlSales(json字符串，{\"discountRate\":,"\limitCount(限购数量)\":,\"propertiesType\":,\"propertiesValue\":\"\"}或{\"levelFee\":,\"saleFee\":,\"propertiesType\":,\"propertiesValue\":\"\"})
  },
  delSale:{//删除sale
    url: '/mall/sale/delete',
    require:['token','clientid','id']
  },
  getSale:{//获取sale
    url: '/mall/sale/get',
    require:['token','clientid','id']
  },
  updateSale:{//更新sale
    url: '/mall/sale/update',
    require:['token','clientid','id']//title(选)、conflictType(选)、start(选)、end(选)、data(选)、
    // propertiesType(选,1商品类型、2商品id、3全场通用)、propertiesValue(选)、discountRate(选)、limitCount(选)、levelFee(选)、saleFee(选)
  },
  getSaleList:{//获取sale列表
    url: '/mall/sale/list',
    require:['token','clientid']//page、size(选)、departmentId、saleTypeId(选)、conflictType(选)、key(选)、
    // enabled(选)、finished(选)、start(选)、end(选)
  },
  //levelSale
  createLevelSale:{//创建满减
    url: '/mall/levelSale/create',
    require:['token','clientid','saleTypeId','title','levelFee','saleFee','propertiesType','propertiesValue']//data(选)
  },
  delLevelSale:{//删除满减
    url: '/mall/levelSale/delete',
    require:['token','clientid','id']
  },
  getLevelSale:{//获取满减
    url: '/mall/levelSale/get',
    require:['token','clientid','id']
  },
  updateLevelSale:{//更新满减
    url: '/mall/levelSale/update',
    require:['token','clientid','id']//title(选)、levelFee(选)、saleFee(选)、propertiesType(选)、propertiesValue(选)、data(选)
  },
  getLevelSaleList:{//获取满减
    url: '/mall/levelSale/list',
    require:['token','clientid']
  },
}
